import request from '@/utils/request.js'

export const useCategoryListService = () => request.get('/category/get')
export const useCategoryAddService = (data) => request.post('/category/add', data)
export const useCategoryUpdateService = (data) => request.put('/category/update', data)
export const useDeleteCategoryService = (id) => request.delete(`/category/${id}`)
